package com.nc.delivery_project.client.statistics;

import com.google.gwt.core.client.GWT;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
import com.google.web.bindery.requestfactory.shared.RequestFactory;

public class StatisticsPlace extends Place {
	
	 @Prefix("statistics")
	 public static class Tokenizer implements PlaceTokenizer<StatisticsPlace>{

		private RequestFactory requestFactory;

	    public Tokenizer(RequestFactory requestFactory) {
	    	 this.requestFactory = requestFactory;
	    }
		
	    @Override
	    public StatisticsPlace getPlace(String token) {
	    	 GWT.log(token);
	    	 return new StatisticsPlace(token);
		}

	    @Override
	    public String getToken(StatisticsPlace place) {
			return place.getToken();
		}
		 
	 }
	 private String token;

	 public StatisticsPlace(String token) {
		 this.token = token;
	 }

	 public String getToken() {
		 return token;
	 }

}
